Truncated Weibull–exponential distribution: methods and applications

This paper introduces a truncated Weibull-exponential distribution and provides a thorough insight into its mathematical characteristics. These characteristics include moments, generating functions, inverse distribution function, and entropy. Various measures are also discussed about the distribution's reliability. A simulation study is carried out to assess the stability and consistency of the maximum likelihood estimates of the parameters. Finally, two social sciences data sets are used to assess the distribution's relevance in modeling real-world situations.

www.nature.com/scientificreports/In this article, we have proposed a new truncated distribution called the truncated Weibull-exponential distribution, which is a truncated mixture of Weibull and exponential distribution.The proposed model is flexible and can be used for modeling data from various fields, including reliability sciences, social sciences, demography, and environmental sciences.We believe that the truncated Weibull-exponential distribution will provide a valuable addition to the existing models and will serve as an effective tool for data analysis in various fields.
The article structure follows.Section "Methodology" outlines the methodology used in this study.Section "The truncated Weibull-exponential distribution" presents the development of the truncated Weibull-Exponential model.Section "Properties of the distribution" contains important properties of the proposed distribution.Section "Reliability analysis" discusses some reliability measures.Section "Estimation" contains estimation of the model parameters.Section "Simulation study" is based on the simulation study to see the consistency of the estimation method.Some real data applications are given in Section "Applications".Section "Conclusions" contains the conclusions and findings of the study.

Methodology
Mahdavi and Silva 18 have derived a truncated family of distributions that can be used with any baseline distribution.The cumulative distribution function (cdf) and probability density function (pdf) of this new family are and where H T (t) is cdf of any generator distribution, H T (0) and H T (1) are values of H T (t) at 0 and 1, F(x) is cdf of any baseline distribution and f (x) is the pdf corresponding to F(x) .Several distributions can be proposed by using different combinations of H T (t) and F(x) .Najarzadegan et al. 19 have used the family (1) to propose a two parameter truncated Weibull-G family of distributions.Bantan et al. 20 have proposed a truncated Burr-G family of distributions by using a Burr generator in (1).Almarashi et al. 21have used the Muth distribution as a generator in (1) to propose a truncated Muth-G family of distributions.In this paper, we have proposed a modified truncated Weibull-F family of distributions by using the following Weibull cdf and pdf as H T (t) and h T (t) in ( 1) and ( 2), respectively, and where γ is the scale parameter and k is the shape parameter.Now, using (3) in (1), the cdf of the proposed trun- cated Weibull-F family of distributions is The density function corresponding to (5) is Various distributions can be derived by using different baseline distributions in ( 5) and ( 6).In the following, we have derived the truncated Weibull-Exponential distribution by using the exponential baseline distribution in (5) and (6).

The truncated Weibull-exponential distribution
In this section, we have proposed the truncated Weibull-Exponential (TWEx) distribution by using the following pdf and cdf of the exponential distribution in ( 5) and (6).
The density function corresponding to ( 8) is www.nature.com/scientificreports/It is interesting to note that if random variable X has density (8) then the distribution of Y = √ X has Weibull- Rayleigh distribution, given by Khalifa et al. 22 .The TWEx distribution provides some specific distributions as a special case.For example, for k = 1, the distribution reduces to a truncated exponential-exponential (TEEx) distribution, and for k = 2, it reduces to the truncated Rayleigh-exponential (TREx) distribution.It is to be noted that the proposed model is applicable for positive phenomenon only.
The density function of TWEx distribution can be easily expressed as the weighted sum of the exponentiatedexponential distributions as where B i,j (k, γ ) = The plots of the density function of TWEx distribution for specific values of λ and γ and for different choices of the parameter k are given in Fig. 1, below From the above figure, we can see that the shape of the distribution changes with the value of k.We can see that the distribution approaches a symmetrical distribution for a large value of k.We can also see that the parameters and γ do not have a significant effect on the shape of the distribution.These parameters rather control the spread of the distribution.

Shape of the distribution
The shape of the distribution is important in certain applications.In the following, we will obtain the mode of the distribution.For this, we first see that the logarithm of the density function is The derivative of (10) with respect to x is The mode is obtained as a solution of ∂g X (x) ∂x = 0 and a unique mode of the distribution is readily obtained as The mode can be computed for specific values of the parameters.

Properties of the distribution
In this section, some desirable properties of the proposed TWEx distribution are explored.These properties are studied in the following sub-sections.

The quantile function
The quantile function is useful in obtaining percentiles of the distribution.The quantile function is obtained by solving G(x) = m for x.Now, for the TWEx distribution, the quantile function is obtained by solving The percentiles can be obtained by using any value of m, such that m ∈ [0, 1] , in (11).Specifically, the median can be obtained by using m = 0.5 in (11).Also, a random observation can be drawn from the TWEx distribution by replacing m with a uniform random number between [0,1] in (11).

Moments and generating functions
The moments are useful in studying certain properties of a probability distribution.The rth moment of a random variable dx.Now, using the density function of the TWEx distribution, from (9), in the above equation, we have Solving the integral, the rth moment of the TWEx distribution is The moments can be computed for specific values of r in (12).The mean and variance of the distribution, for selected values of the parameters, are given in Table 1, below From the table, we can observe that as the value of increases, the mean of the TWEx distribution also increases.This is because is the scale parameter of the distribution, and as it increases, the distribution shifts towards higher values, resulting in a larger mean.Similarly, we can see that as the parameter γ increases, the mean of the TWEx distribution decreases.This is because γ controls the rate at which the distribution decays, and as it increases, the distribution becomes more concentrated around lower values, resulting in a smaller mean.Finally, as k increases, the mean of the TWEx distribution also increases.This is because k is a shape parameter that controls the rate at which the tails of the distribution decay, and as it increases, the distribution becomes less heavy-tailed, resulting in a larger mean.The pattern for variance is almost the same as that of the mean.
The incomplete moment is another meaningful measure of a distribution.The incomplete moment of a distribution is defined as Using (9), the incomplete moment for the TWEx distribution is given as Simplifying the integral, the pth incomplete moment for the TWEx distribution is x p e −(i+1)x/ dx.where Ŵ(n, z) is the incomplete gamma function defined as The incomplete moments can be computed for specific values of y and p.
The moment generating function (mgf) is a useful function that can be used to compute moments of a distribution.The moment generating function of a continuous random variable X having density f (x) is obtained as Now, the mgf for the TWEx distribution is obtained as Solving the integral, the mgf of the TWEx distribution is The moments can be computed from (13).

Entropy
The entropy is a useful measure of information.The Rényi 23

Reliability analysis
In this section, we have given some reliability analysis for the proposed TWEx distribution.The reliability analyses include the survival function, the hazard rate function, the moments of the residuals and the reversed residuals.These are given in the following sub-sections.

Survival Function
The survival function is useful in reliability analysis.The function is used to obtain the probability that a component will be functioning after a specified time.The survival function is computed as S(x) = 1 − .The survival function for the TWEx distribution is given as The survival function can be computed for specific values of the parameters.

Hazard rate function
The hazard rate function provides the information about instantaneous failure of a component that is still functioning at a specific time point.The hazard rate function for the TWEx distribution is obtained as The plots of the hazard rate function for different values of the parameters are given in Fig. 2 below We can see that the hazard rate function of TWEx distribution has both increasing and decreasing trends.

Moments of residual and reversed residual life
The residual life is useful to determine the life expectancy of components.The moments of residual and reversed residual life are useful in obtaining certain information about the life expectancy of the components.The rth moment of residual life is given as where R(t) is survival function associated with g X (x) at time t.Using the binomial expansion of (x − t) r , we have Now, using g X (x) from ( 9), the rth moment of residual life for the TWEx distribution is Solving the integral, the rth moment of residual life from the TWEx distribution is The mean residual life can be obtained by using r = 1 in the above equation.The rth moment of reversed residual life is given as Using the density function, given in ( 9), the rth moment of the reversed residual life for the TWEx distribution is given as The mean residual life can be obtained by using r = 1 in (14).

Estimation
In this section, we have discussed the maximum likelihood estimation of parameters of the TWEx distribution.For this, suppose that a sample of size n is available from the TWEx distribution.The log-likelihood function is then The derivatives of the log-likelihood function, (15), with respect to the unknown parameters are and The maximum likelihood estimators of k, γ and can be obtained by equating the derivatives in (16)(17)(18) to zero and numerically solving the resulting equations.
The Fisher information matrix is useful to obtain the variances and covariances of the maximum likelihood estimators of the parameters.The entries of the Fisher information matrix for the TWEx distribution are given as The entries of the Fisher information matrix are given in Appendix-A.The inverse of the Fisher information matrix provides the variance-covariance matrix of the maximum likelihood estimates, which help in obtaining the confidence intervals for the true population parameters.

Simulation study
In this section, we have presented the simulation study to see the performance of the maximum likelihood estimates of the parameters.The simulation study has been conducted by generating random samples of different sizes from the TWEx distribution.The simulation algorithm is given below: 1. Generate random samples of sizes 50, 250, 500, 750, and 1000 from the TWEx distribution.2. Compute maximum likelihood estimates of the parameters γ , and k for each sample.The results of the simulation study are given in Table 2 below; with pre-specified values in the parenthesis; From the above table, we can see that the estimated values of the parameters are close to the pre-specified values.Also, we can see that the mean square error of the estimates decreases with an increase in the sample size.The results of simulation study indicate that the maximum likelihood estimates of the parameters are consistent estimates.

Applications
In this section, we have given two real data applications of the proposed TWEx distribution.The data set has been obtained from the Country Data Book 24 and contains information about poverty level and college degrees.The summary measures of two data are given in Table 3, below We have fitted the following distributions; alongside the TWEx; distribution on these two data sets The estimated model parameters alongside the values of − 2(log-likelihood), Akaike Information Criterion (AIC), and the p value of Kolmogorov-Smirnov (KS) test are given in Table 4 below From the above table, we can see that the TWEx distribution is best fit for the two data sets as it has the smallest value of AIC and the largest p value for the KS-test among all the competing distributions.
We have also constructed the plots of density and distribution functions of various distributions for the two data sets.These plots are given in Figs. 3 and 4 below.From these plots, we can see that the TWEx distribution is the best fit for the two data sets.Also, the log-logistic distribution is second best fit to the data.The other distributions used in the analyses are the poor fit.Further, the probability plot of the TWEx distribution for the two data sets, given in Fig. 5, shows the same result that the TWEx distribution is a reasonable fit for the two data sets.

Conclusions
In this paper, we have proposed a TWEx distribution using the truncated Weibull distribution as a generator.Various desirable properties of the proposed TWEx distribution are explored.These properties include moments of the distribution, quantile function, entropy, and generating function.We have also discussed the reliability analysis for the proposed distribution.It has been observed that the proposed distribution has increasing and decreasing hazard rate functions.The moments of residual and reversed residual life has also been computed.We have also discussed the maximum likelihood estimation of the parameters for the proposed TWEx distribution.A simulation study is presented to see the performance of the estimates and it is found that the maximum

Figure 1 .
Figure 1.Plot of the density function of TWEx distribution for different values of the parameter.
entropy is computed as Using the density function of the TWEx distribution, the Rényi entropy is Transforming we have Solving the integral, the entropy is The entropy can be computed for given values of the parameters. https://doi.org/10.1038/s41598-023-48288-xwww.nature.com/scientificreports/

Figure 2 .
Figure 2. Plot of the hazard rate function for different values of the parameter.

Figure 3 .
Figure 3. Density plots of various distributions for two data sets.

Figure 4 .
Figure 4. Distribution function plots of various distributions for two data sets.

Figure 5 .
Figure 5. Probability plot of TWEx distribution for two data sets.

Table 1 .
Mean and variance of TWEx distribution.

Table 2 .
Estimated values of the parameters alongside the mean square errors.

Table 3 .
Summary measures of the data.

Table 4 .
Fitted distributions on two data sets.